<?php
/*
	提现
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
global $_RQ;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	$return['ischecklogin']=model('core/core')->checklogin('','',true);
	$_SESSION['memberid']=$this->model('member')->checkmember();
	$_SESSION['logout_forward']='jy_aihire/home';
	$member=pdo_get('jy_aihire_member',array('id'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']));
	if(!$member){
		exi('找不到会员信息！','error');
	}
	$member['images']=$member['images']?json_decode($member['images'],true):array();
	$member['picsnum']=count($member['images']);
	$return['member']=$member;
	set_html('title','我的资质');
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$data=array(
		'images'=>ijson_encode($postdata['images']),
	);
	$id=$postdata['id'];
	pdo_update('jy_aihire_member',$data,array('id'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']));
	exi('提交成功！','','goback');
}